<template>
  <div v-loading="loading" class="app-container">
    <div style="color: red;margin-bottom: 10px;">
      本页的操作非常危险，非技术人员请勿操作！
    </div>
    <el-button type="primary" @click="stopSever">关闭服务</el-button>
  </div>
</template>
<script>
import {youyaguanbi} from "@/api/system/caozuojilu.js"
export default {
  name: "Youya",
  components:{},
  data() {
    return {
      loading: false,
     
    };
  },
  created() {
   
  },
  computed: {
   
  },
  methods: {
    stopSever(){
      this.$confirm("当前操作会造成系统停服，请谨慎操作！", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(() => {
          this.loading = true
          youyaguanbi().then((res) => {
            this.$message.success(res.msg);
            this.loading = false
          }).catch(err=>{
            this.loading = false
          })
        })
        .catch(() => {});
    }
    
  },
};
</script>
<style scoped lang="css">
</style>
